#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"

#include <QDeclarativeView>
#include <QDeclarativeContext>

#include "bluetoothmanager.h"

Q_DECL_EXPORT int main(int argc, char *argv[])
{
    QScopedPointer<QApplication> app(createApplication(argc, argv));
    //QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());

    QmlApplicationViewer viewer;

    viewer.rootContext()->setContextProperty("BluetoothManager", new BluetoothManager());

    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    viewer.setMainQmlFile(QLatin1String("qml/SnowballGame/main.qml"));
    viewer.showExpanded();

    return app->exec();
}
